package kz.pompei.ifacer.main;

public class KeysAndActions {
  public static void configure(KeyManager km, ActionManager mn) {
    km.add(mn.save, "Ctrl+S", "S");
    km.add(mn.saveAll, "Ctrl+Shift+S");
    km.add(mn.open, "Ctrl+O", "O");
    km.add(mn.undo, "Ctrl+Z", "Z");
    km.add(mn.redo, "Ctrl+Shift+Z");
    km.add(mn.delete, "Delete");
    km.add(mn.clearSelection, "Escape");
    km.add(mn.selectAll, "Ctrl+A", "A");
    km.add(mn.exportToPng, "Ctrl+I", "I");
    km.add(mn.copySelection, "Ctrl+C", "Ctrl+Insert");
    km.add(mn.paste, "Ctrl+V", "Shift+Insert");
    km.add(mn.cutSelection, "Ctrl+X", "Ctrl+Delete");
    
    km.add(mn.stepRight1, "Right");
    km.add(mn.stepRight5, "Alt+Right");
    km.add(mn.stepLeft1, "Left");
    km.add(mn.stepLeft5, "Alt+Left");
    km.add(mn.stepUp1, "Up");
    km.add(mn.stepUp5, "Alt+Up");
    km.add(mn.stepDown1, "Down");
    km.add(mn.stepDown5, "Alt+Down");
    
    km.add(mn.stepWidthMore1, "Shift+Right");
    km.add(mn.stepWidthMore5, "Shift+Alt+Right");
    km.add(mn.stepWidthLess1, "Shift+Left");
    km.add(mn.stepWidthLess5, "Shift+Alt+Left");
    km.add(mn.stepHeightMore1, "Shift+Down");
    km.add(mn.stepHeightMore5, "Shift+Alt+Down");
    km.add(mn.stepHeightLess1, "Shift+Up");
    km.add(mn.stepHeightLess5, "Shift+Alt+Up");
  }
}
